import React from "react";
import {
  HomeOutlined,
  SlackSquareOutlined,
  DatabaseOutlined,
  ForkOutlined,
  GithubOutlined,
  Html5Outlined,
  AreaChartOutlined,
  BarChartOutlined,
  LineChartOutlined,
  PieChartOutlined,
} from "@ant-design/icons";

export default [
  {
    title: "首页",
    key: "/admin",
    icon: <HomeOutlined />,
  },
  {
    title: "商品",
    icon: <SlackSquareOutlined />,
    key: "goods",
    children: [
      {
        title: "品类管理",
        key: "/category",
        icon: <DatabaseOutlined />,
      },
      {
        title: "商品管理",
        key: "/product",
        icon: <ForkOutlined />,
      },
    ],
  },
  {
    title: "用户管理",
    key: "/user",
    icon: <GithubOutlined />,
  },
  {
    title: "角色管理",
    key: "/role",
    icon: <Html5Outlined />,
  },
  {
    title: "图形图表",
    icon: <AreaChartOutlined />,
    key: "pic",
    children: [
      {
        title: "柱形图",
        key: "/bar",
        icon: <BarChartOutlined />,
      },
      {
        title: "折线图",
        key: "/line",
        icon: <LineChartOutlined />,
      },
      {
        title: "饼图",
        key: "/pie",
        icon: <PieChartOutlined />,
      },
    ],
  },
];
